﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CrearDocumento.aspx.cs" Inherits="WebApplication1.CrearDocumento" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 149px;
        }
        .style2
        {
            width: 210px;
        }
        .style3
        {
            height: 278px;
        }
        .style4
        {
            height: 278px;
            width: 403px;
        }
        .style5
        {
            width: 403px;
            height: 231px;
        }
        .style6
        {
            height: 38px;
        }
        .style7
        {
            height: 32px;
        }
        .style8
        {
            height: 194px;
        }
        .style9
        {
            height: 74px;
        }
        .style11
        {
            height: 231px;
        }
        .style12
        {
            height: 30px;
        }
        .style13
        {
            height: 31px;
        }
        .style14
        {
            height: 28px;
        }
        .style15
        {
            width: 210px;
            height: 34px;
        }
        .style17
        {
            width: 149px;
            height: 34px;
        }
        .style18
        {
            height: 34px;
        }
        .style19
        {
            width: 210px;
            height: 31px;
        }
        .style21
        {
            width: 149px;
            height: 31px;
        }
        .style22
        {
            width: 210px;
            height: 30px;
        }
        .style24
        {
            width: 149px;
            height: 30px;
        }
        .style26
        {
            height: 74px;
            width: 185px;
        }
        .style27
        {
            width: 185px;
        }
        .style28
        {
            width: 185px;
            height: 40px;
        }
        .style29
        {
            height: 40px;
        }
        .style30
        {
            width: 210px;
            height: 83px;
        }
        .style31
        {
            height: 83px;
        }
        .style32
        {
            width: 149px;
            height: 83px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
<tr><td class="style4">
<table>
<tr><td class="style7">Fecha Contabilización:</td><td class="style7">
    <asp:Label ID="Label4" runat="server" Text="12/12/12"></asp:Label>
    </td></tr>
<tr><td class="style8">Fecha Entrega:</td><td class="style8">
    <asp:TextBox ID="fechaEntrega" runat="server"></asp:TextBox>
    </td>
    </tr>
<tr><td>Socio Negocio:</td><td>
    <asp:DropDownList ID="ddlSocio" runat="server">
    </asp:DropDownList>
    </td></tr>
</table>
</td>
<td class="style3">
<table>
<tr><td class="style28">Referencia documento previo:</td><td class="style29">
    <asp:TextBox ID="docPrevio" runat="server" style="margin-left: 0px" 
        Width="207px"></asp:TextBox>
    </td>
</tr>
<tr><td class="style27">&nbsp;</td>
    <td>
        <asp:Button ID="Button3" runat="server" style="margin-left: 0px" 
            onclick="Cargar_Documento" Text="Cargar" />
    </td>
</tr>
<tr><td class="style26">Tipo de Documento:</td><td class="style9">
    <asp:DropDownList ID="DropDownList2" runat="server">
        <asp:ListItem>Orden de Compra</asp:ListItem>
        <asp:ListItem>Entrada de mercancías</asp:ListItem>
        <asp:ListItem>Factura de proveedores</asp:ListItem>
        <asp:ListItem>Orden de Venta</asp:ListItem>
        <asp:ListItem>Entrega de mercancías</asp:ListItem>
        <asp:ListItem>Factura de clientes</asp:ListItem>
        <asp:ListItem>Factura de Servicios</asp:ListItem>
    </asp:DropDownList>
    </td></tr>
<tr><td class="style27">Descripción:</td><td>
    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="77px" 
        Width="205px"></asp:TextBox>
    </td></tr>
</table>
</td>
</tr>
<tr>
<td class="style5" valign="top">
    <asp:ListBox ID="ListBox1" runat="server" Height="230px" Width="398px">
    </asp:ListBox>
    </td>
<td class="style11">
<table>
<tr><td class="style12">Artículo:</td><td class="style12">
    <asp:DropDownList ID="ddlArticulo" runat="server">
    </asp:DropDownList>
    </td></tr>
<tr><td class="style13">Bodega:</td><td class="style13">
    <asp:DropDownList ID="ddlBodega" runat="server">
    </asp:DropDownList>
    </td></tr>
<tr><td class="style7">Impuesto:</td><td class="style7">
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </td></tr>
<tr><td class="style13">Cantidad:</td><td class="style13">
    <asp:TextBox ID="cantidad" runat="server"></asp:TextBox>
    </td></tr>
<tr><td class="style7">Precio Compra:</td><td class="style7">
    <asp:TextBox ID="compra" runat="server"></asp:TextBox>
    </td></tr>
<tr><td class="style14">&nbsp;</td><td class="style14">&nbsp;</td></tr>
<tr><td class="style6"></td><td class="style6">
    <asp:Button ID="Button1" runat="server" Text="Agregar línea" OnClick="Agregar_Linea_Doc"/>
    </td></tr>
</table></td>
</tr>
</table>
<table>
<tr><td class="style30">
    <asp:CheckBox ID="CheckBox1" runat="server" Text="Usar cuenta de dotación" />
    </td><td class="style31" align="right">
        Cuenta de dotación:</td>
    <td class="style32">
        <asp:DropDownList ID="DropDownList3" runat="server">
        </asp:DropDownList>
    </td></tr>
<tr><td class="style15"></td><td class="style18">Total antes de Impuesto:</td>
    <td class="style17">
        <asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
    </td></tr>
<tr><td class="style19"></td><td class="style13">Monto de Impuesto</td>
    <td class="style21">
        <asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
    </td></tr>
<tr><td class="style22"></td><td class="style12">Total:</td><td class="style24">
    <asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
    </td></tr>
<tr><td class="style2"></td><td></td><td class="style1">
    <asp:Button ID="Button2" runat="server" Text="Crear documento" 
        onclick="crearDocumento" />
    </td></tr>
</table>
 <script>
     $(document).ready(function () {
         $("#fechaEntrega").datepicker({
             showOn: "button",
             buttonImage: "../Images/calendar_icon.jpg",
             buttonImageOnly: true
         });
     });
    </script>
</asp:Content>
